#ifndef CVACTIVITYWIGET_H
#define CVACTIVITYWIGET_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QStyleOption>
#include <QLayoutItem>

#include "model/cvactivity.h"
#include "widgets/cvimage.h"
namespace Ui {
class CVActivityWiget;
}

class CVActivityWidget : public QWidget
{
    Q_OBJECT
    
public:
    explicit CVActivityWidget(QWidget *parent = 0);
    CVActivityWidget(CVActivity *activity, QWidget *parent = 0);

    ~CVActivityWidget();

    void paintEvent(QPaintEvent *);
public slots:
    void linkActivated(const QString &str);
private slots:
    void imageClicked(CVImage *image);
private:
    Ui::CVActivityWiget *ui;
};

#endif // CVACTIVITYWIGET_H
